package com.xinghou.platform.dao.mange.service;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.xinghou.platform.model.main.VestAssigned;
public interface VestAssignedDAOService {
	
	public List<VestAssigned> getvestAssigned(Integer vestId) throws DataAccessException;

	/**
	 * 保存
	 * @param vestAssigned
	 * @return
	 * @throws DataAccessException
	 */
	public int saveVestAssigned(VestAssigned vestAssigned) throws DataAccessException;
	
	/**
	 * 修改
	 * @param vestAssigned
	 * @return
	 * @throws DataAccessException
	 */
	public int updateVestAssigned(VestAssigned vestAssigned) throws DataAccessException;
	
	/**
	 * 查
	 * @param id
	 * @return
	 * @throws DataAccessException
	 */
	public VestAssigned getvestAssignedById(Integer id) throws DataAccessException;	
	
	/**
	 * 查询两个用户之间对话是否已建立
	 * @param trueid	
	 * @param fakeid
	 * @param status	状态
	 * @return
	 * @throws DataAccessException
	 */
	public VestAssigned isOrNotVestAssigned(int trueid,int fakeid,int status) throws DataAccessException;
	
	/**
	 * 获得马甲表待处理数量
	 * @param vestid 为-1时查询全部
	 * @return
	 * @throws DataAccessException
	 */
	public int getvestAssignedCount(int vestid) throws DataAccessException;
	
	/**
	 * 删除
	 * @param vestAssigned
	 * @return
	 * @throws DataAccessException
	 */
	public int delVestAssigned(int id) throws DataAccessException;
}
